<?php
if(!$session->isAdmin()){
	 header("Location: ../index.php");
}
else{ ?>
	<div id="form_container" style="border:none;  width:800px; margin: 10px 78px 0px 78px;">
    <div id="form_text" style="text-align:left;" class="settings">
        <h2><b>Welcome to the Admin Center</b></h2><br />
        <p>To view more options for Users and Organizations, click on the equivalent tab.</p>
        <p style="*margin-bottom:17px;">Instructions and about goes here...</p>
    </div>
    <fieldset id="fieldset"><legend>Statistics</legend>
    <table id="table">
        <tr>
            <td><b>Member Total: </b><?php echo $database->getNumMembers(); ?></td>
            <td><b>Member's Online: </b><?php echo $database->num_active_users; ?></td>
        </tr>
        <tr>
            <td><b>Last Registered Member: </b><?php echo $database->getLastUserRegisteredName(); ?></td>
            <td><b>Last Login Date: </b><?php echo date("F j, Y, g:i a", $database->getLastUserRegisteredDate()); ?></td>
        </tr>
    </table>
    </fieldset>
</div>
<?php } ?>
